<template>
  <ContentWrap>
    <IFrame :src="src" />
  </ContentWrap>
</template>
<script lang="ts" setup>

import * as MenuApi from "@/api/system/menu";

const loading = ref(true) // 是否加载中
const src = ref('') // Knife4j UI

/** 初始化 */
onMounted(async () => {
  try {
    const data = await MenuApi.getMenuByPath('security/dashboard/index1')
    //src.value = 'http://192.168.2.42:9098/app/dashboards#/view/9f6df97f-11ac-4ab1-8128-f2d1dac2e699?embed=true&_g=(refreshInterval%3A(pause%3A!t%2Cvalue%3A60000)%2Ctime%3A(from%3Anow-10d%2Cto%3Anow))&show-query-input=true&show-time-filter=true'
    src.value = data.externalLink
  } finally {
    loading.value = false
  }
})
</script>
